<div class="span10 offset1">
	<div class="span12">
		<ul class="breadcrumb well">
			<li><a href="{:U('Index/index')}">首页</a> <span class="divider">/</span></li>
			<li><a href="{:U('User/ulist')}">用户管理</a><span class="divider">/</span></li>
			<li>新增</li>
		</ul>
	</div>
	<div class="span12">
		<form id="user_add_form" class="form-horizontal">
		<div class="span12">
			<div class="control-group span6">
				<label class="control-label"><i class="required">*</i>名称：</label>
				<div class="controls">
					<textarea name="name" rows="1"  class="span11" placeholder="用户名称" required></textarea>
				</div>		
			</div>
			<!-- <div class="control-group span6">
				<label class="control-label"><i class="required">*</i>密码：</label>
				<div class="controls">
					<input name="password" type="password" class="span11"  placeholder="用户密码" required></input>
				</div>	
			</div> -->
			<div class="control-group span6">
				<label class="control-label"><i class="required">*</i>手机：</label>
				<div class="controls">
					<textarea name="phone" rows="1" class="span11" placeholder="用户手机" required onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></textarea>
				</div>
			</div>
		</div>
		<div class="span12">				
			<div class="control-group span6">
				<label class="control-label"><i class="required">*</i>邮箱：</label>
				<div class="controls">
					<input name="email" type="email" class="span11" placeholder="用户邮箱" required></input>
				</div>
			</div>
			<div class="control-group span6">
				<label class="control-label"><i class="required">*</i>角色：</label>
				<div class="controls">
				      <select name="role"  class="form-control span11">
				         <option>管理员</option>
				         <option>测试人员</option>
				         <option>开发人员</option>
				      </select>
			      </div>
			</div>	
			
		</div>
		<div class="span12">		
			<div class="control-group span6">
				<label class="control-label"><i class="required">*</i>默认App：</label>
				<div class="controls">					
			      <select name="defaultApp" id ="defaultApp"  class="form-control span11">
			        <volist name="apps" id="app">
			         <option>{$app.appName}</option>
			        </volist>
			      </select>
				</div>
			</div>
			<div class="control-group span6">
				<label class="control-label">关联App：</label>
				<div class="controls">
					<select name="addedApps" id="addedApps" class="populate placeholder form-control span11" multiple>
						<volist name="apps" id="app">
							<option value="{$app.appName}">{$app.appName}</option>        	 
				        </volist>
					</select>
				</div>
			</div>	
		</div>		
			<div style="text-align:center"><button type="submit" class="btn btn-info">保存</button ></div>
		</form>
		
	</div>
</div>
<script type="text/javascript" src="__PUBLIC__/js/select2.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/select2.css">
<script src="__PUBLIC__/js/user.js"></script>
